<template>
  <div>
    <hr>
    <h1>我是login组件:{{ value }}</h1>
    <button @click="changeMsg">修改msg属性</button>
  </div>
</template>

<script>
export default {
 props: {
  
      type: String,
    },
    methods:{
        changeMsg(){
            this.$emit('changeMsg',"新值");
            this.$emit("input","新值")
        }
    }


}

</script>

<style>

</style>